//
// itertool - a polynormial and type-safe iterator framework in C++.
//
// Copyright (c) 2021-2025 Feng Cong
//
// Distributed under the MIT Software License
// See accompanying file LICENSE.txt or copy at
// https://opensource.org/licenses/MIT

#include "fibonacci_number.h"

#include "itertool_test.h"

TEST_CASE("FiboNumber") {
  auto fibo = itertool_test::FiboNumber();
  const itertool_test::FiboItem kFirstFewFiboNumbers[] = {
      0, 1, 1, 2, 3, 5,
  };
  for (auto number : kFirstFewFiboNumbers) {
    CHECK_EQ(number, fibo.GetNow());
    fibo.Advance();
  }
}
